﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_StaffLogout]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_StaffLogout];
GO
CREATE PROCEDURE [dbo].[sproc_StaffLogout]
    @username            nvarchar(25)
/*

============================================================
功能:    员工退出登陆操作
参数:
    @username            nvarchar(25)        :    登陆名
    
============================================================

*/

AS
          DELETE FROM UDS_Online WHERE Username=@username